package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

public interface IUserService {

    ServerResponse login(String username, String password);

    public ServerResponse register(User user);

    public ServerResponse checkValid(String str, String type);

    public ServerResponse selectQuestion(String username);

    public ServerResponse checkAnswer(String username, String question, String answer);

    public ServerResponse forgetResetPassword(String username, String newPassword, String forgetToken);

    public ServerResponse resetPassword(User user, String oldPassword, String newPassword);

    public ServerResponse updateInformation(User user);

    public ServerResponse getInformation(Integer userId);

    public ServerResponse checkAdminRole(User user);
}
